import { getAllRoleList, isUserExist } from '/@/api/demo/system';
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { Switch } from 'ant-design-vue';
import { setUserStatus } from '/@/api/demo/system';
import { useMessage } from '/@/hooks/web/useMessage';
import { h } from 'vue';
export const columns: BasicColumn[] = [
  {
    title: 'id',
    dataIndex: 'id',
    width: 120,
  },
  {
    title: '文件用户Id',
    dataIndex: 'fileUserId',
    width: 120,
  },
  {
    title: '当前容量',
    dataIndex: 'currentSize',
    width: 120,
  },
  {
    title: '最大容量',
    dataIndex: 'maxSize',
    width: 120,
  },
  {
    title: '仓库权限级别',
    dataIndex: 'permission',
    width: 120,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '文件仓库名',
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'fileUserId',
    label: '文件用户Id',
    component: 'Input',
    colProps: { span: 5 },
  },

];

export const fileStorageFormSchema: FormSchema[] = [
  {
    label: 'id',
    field: 'id',
    component: 'Input',
    required: false,
    ifShow: true
  },
  {
    field: 'name',
    label: '文件仓库名',
    component: 'Input',
    required: true,
  },
  {
    field: 'url',
    label: 'url',
    component: 'Input',
    required: false,
  },
];
